package com.rtx.wms.std.asn.bean.bak;

import java.time.LocalDateTime;
import java.util.List;

import org.springframework.util.StringUtils;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;

/**
 * <p>
 * 
 * </p>
 *
 * @author zcw
 * @since 2023-04-20
 */
@TableName("api_receipt_bak")
@ApiModel(value = "ApiReceipt对象", description = "")
public class ApiReceiptBak{
	@TableField(exist = false)
	private String appkey;

    @TableId(value = "SERIALKEY", type = IdType.AUTO)
    private Integer serialkey;

    private String whseid;

    private String storerkey;

    private String notes;

    private String shipfromcontact;

    private String shipfromstate;

    private String shipfromcity;

    private String shipfromaddressline1;

    private String shipfromphone;

    private String ediflag;

    private String msg;

    private String batchid;

    private LocalDateTime adddate;

    private String addwho;

    private LocalDateTime editdate;

    private String ediwho;

	private String source;//上游系统,
	private String receiptkey;// wms单号,
	private String externreceiptkey;// 入库单号,
	
	private String receiptdate; //订单创建时间,
	private String type; //单据类型,
	private String expectedreceiptdate; //预期到货时间,
	private String status;// 单据状态,
	private String openqty; //汇总统计,
	private String suppliercode; //发货地,
	private String suppliername;//发货地公司,
	private String carriername; //物流公司名称,
	private String carrierreference; //快递单号,
	private String logisticscode;
	private String logisticsname;
	private String carrierkey;
	
	private String edimsg;
	
	private int rtxqueue;
	 
	private String rtxflag;
	private String externalreceiptkey2;
	private String shipfromaddressline2;
	private String shipfromaddressline3;
	private String rtxexpresskey;
	private String rtxpofromhourse;
	private String rtxqmmethod;
	private String qmcustomerid;
    private String rtxqmtype;
    private String rtxshopnick;
    
    private String default01;
    private String default02;
    private String default03;
    private String default04;
    private String default05;
    private String default06;
    private String default07;
    private String default08;
    private String default09;
    private String default10;
	
	 @TableField(exist = false)
	private List<ApiReceiptdetailBak> details;

	public String getRtxshopnick() {
		return rtxshopnick;
	}

	public void setRtxshopnick(String rtxshopnick) {
		this.rtxshopnick = rtxshopnick;
	}

	public String getDefault01() {
		return default01;
	}

	public void setDefault01(String default01) {
		this.default01 = default01;
	}

	public String getDefault02() {
		return default02;
	}

	public void setDefault02(String default02) {
		this.default02 = default02;
	}

	public String getDefault03() {
		return default03;
	}

	public void setDefault03(String default03) {
		this.default03 = default03;
	}

	public String getDefault04() {
		return default04;
	}

	public void setDefault04(String default04) {
		this.default04 = default04;
	}

	public String getDefault05() {
		return default05;
	}

	public void setDefault05(String default05) {
		this.default05 = default05;
	}

	public String getDefault06() {
		return default06;
	}

	public void setDefault06(String default06) {
		this.default06 = default06;
	}

	public String getDefault07() {
		return default07;
	}

	public void setDefault07(String default07) {
		this.default07 = default07;
	}

	public String getDefault08() {
		return default08;
	}

	public void setDefault08(String default08) {
		this.default08 = default08;
	}

	public String getDefault09() {
		return default09;
	}

	public void setDefault09(String default09) {
		this.default09 = default09;
	}

	public String getDefault10() {
		return default10;
	}

	public void setDefault10(String default10) {
		this.default10 = default10;
	}

	public String getCarrierkey() {
		return carrierkey;
	}

	public void setCarrierkey(String carrierkey) {
		this.carrierkey = carrierkey;
	}

	public String getAppkey() {
		return appkey;
	}

	public void setAppkey(String appkey) {
		this.appkey = appkey;
	}

	public String getCarrierreference() {
		return carrierreference;
	}

	public void setCarrierreference(String carrierreference) {
		this.carrierreference = carrierreference;
	}

	public String getEdiflag() {
		return ediflag;
	}

	public void setEdiflag(String ediflag) {
		this.ediflag = ediflag;
	}

	public String getRtxqmtype() {
		return rtxqmtype;
	}

	public void setRtxqmtype(String rtxqmtype) {
		this.rtxqmtype = rtxqmtype;
	}

	public String getQmcustomerid() {
		return qmcustomerid;
	}

	public void setQmcustomerid(String qmcustomerid) {
		this.qmcustomerid = qmcustomerid;
	}

	public String getRtxqmmethod() {
		return rtxqmmethod;
	}

	public void setRtxqmmethod(String rtxqmmethod) {
		this.rtxqmmethod = rtxqmmethod;
	}

	public String getRtxpofromhourse() {
		return rtxpofromhourse;
	}

	public void setRtxpofromhourse(String rtxpofromhourse) {
		this.rtxpofromhourse = rtxpofromhourse;
	}

	public Integer getSerialkey() {
		return serialkey;
	}

	public void setSerialkey(Integer serialkey) {
		this.serialkey = serialkey;
	}

	public String getWhseid() {
		return whseid;
	}

	public void setWhseid(String whseid) {
		this.whseid = whseid;
	}

	public String getStorerkey() {
		return storerkey;
	}

	public void setStorerkey(String storerkey) {
		this.storerkey = storerkey;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public String getShipfromcontact() {
		return shipfromcontact;
	}

	public void setShipfromcontact(String shipfromcontact) {
		this.shipfromcontact = shipfromcontact;
	}

	public String getShipfromstate() {
		return shipfromstate;
	}

	public void setShipfromstate(String shipfromstate) {
		this.shipfromstate = shipfromstate;
	}

	public String getShipfromcity() {
		return shipfromcity;
	}

	public void setShipfromcity(String shipfromcity) {
		this.shipfromcity = shipfromcity;
	}

	public String getShipfromaddressline1() {
		return shipfromaddressline1;
	}

	public void setShipfromaddressline1(String shipfromaddressline1) {
		this.shipfromaddressline1 = shipfromaddressline1;
	}

	public String getShipfromphone() {
		return shipfromphone;
	}

	public void setShipfromphone(String shipfromphone) {
		this.shipfromphone = shipfromphone;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getBatchid() {
		return batchid;
	}

	public void setBatchid(String batchid) {
		this.batchid = batchid;
	}

	public LocalDateTime getAdddate() {
		return adddate;
	}

	public void setAdddate(LocalDateTime adddate) {
		this.adddate = adddate;
	}

	public String getAddwho() {
		return addwho;
	}

	public void setAddwho(String addwho) {
		this.addwho = addwho;
	}

	public LocalDateTime getEditdate() {
		return editdate;
	}

	public void setEditdate(LocalDateTime editdate) {
		this.editdate = editdate;
	}

	public String getEdiwho() {
		return ediwho;
	}

	public void setEdiwho(String ediwho) {
		this.ediwho = ediwho;
	}


	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getReceiptkey() {
		return receiptkey;
	}

	public void setReceiptkey(String receiptkey) {
		this.receiptkey = receiptkey;
	}

	public String getExternreceiptkey() {
		return externreceiptkey;
	}

	public void setExternreceiptkey(String externreceiptkey) {
		this.externreceiptkey = externreceiptkey;
	}

	public String getReceiptdate() {
		return receiptdate;
	}

	public void setReceiptdate(String receiptdate) {
		this.receiptdate = receiptdate;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getExpectedreceiptdate() {
		return expectedreceiptdate;
	}

	public void setExpectedreceiptdate(String expectedreceiptdate) {
		this.expectedreceiptdate = expectedreceiptdate;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getOpenqty() {
		return openqty;
	}

	public void setOpenqty(String openqty) {
		this.openqty = openqty;
	}

	public String getSuppliercode() {
		return suppliercode;
	}

	public void setSuppliercode(String suppliercode) {
		this.suppliercode = suppliercode;
	}

	public String getSuppliername() {
		return suppliername;
	}

	public void setSuppliername(String suppliername) {
		this.suppliername = suppliername;
	}

	public String getCarriername() {
		return carriername;
	}

	public void setCarriername(String carriername) {
		this.carriername = carriername;
	}

	public String getLogisticscode() {
		return logisticscode;
	}

	public void setLogisticscode(String logisticscode) {
		this.logisticscode = logisticscode;
	}

	public String getLogisticsname() {
		return logisticsname;
	}

	public void setLogisticsname(String logisticsname) {
		this.logisticsname = logisticsname;
	}

	public String getEdimsg() {
		return edimsg;
	}

	public void setEdimsg(String edimsg) {
		if(StringUtils.hasLength(edimsg)) {
			if(edimsg.length()>500) {
				edimsg.substring(0, 490);
			}
		}
		this.edimsg = edimsg;
	}

	public int getRtxqueue() {
		return rtxqueue;
	}

	public void setRtxqueue(int rtxqueue) {
		this.rtxqueue = rtxqueue;
	}

	public List<ApiReceiptdetailBak> getDetails() {
		return details;
	}

	public void setDetails(List<ApiReceiptdetailBak> details) {
		this.details = details;
	}

	public String getRtxflag() {
		return rtxflag;
	}

	public void setRtxflag(String rtxflag) {
		this.rtxflag = rtxflag;
	}

	public String getExternalreceiptkey2() {
		return externalreceiptkey2;
	}

	public void setExternalreceiptkey2(String externalreceiptkey2) {
		this.externalreceiptkey2 = externalreceiptkey2;
	}

	public String getShipfromaddressline2() {
		return shipfromaddressline2;
	}

	public void setShipfromaddressline2(String shipfromaddressline2) {
		this.shipfromaddressline2 = shipfromaddressline2;
	}

	public String getShipfromaddressline3() {
		return shipfromaddressline3;
	}

	public void setShipfromaddressline3(String shipfromaddressline3) {
		this.shipfromaddressline3 = shipfromaddressline3;
	}

	public String getRtxexpresskey() {
		return rtxexpresskey;
	}

	public void setRtxexpresskey(String rtxexpresskey) {
		this.rtxexpresskey = rtxexpresskey;
	}
}
